Abbreviated ORBstreams.h++ Class Reference

Abrreviated ORBstreams.h++ Class Reference



RWreqistream


                           ... RWvistreamRWvios                              
                                   
   RWreqistream...                
                            ... RWios

Synopsis

#include <rw/orb/orbstrea.h>

CORBA::Request &req = ...;
RWreqistream orbIStream(req);

Description

Class RWreqistream is an input stream used to read an object's state from a CORBA::Request object. Class RWreqistream encapsulates the CORBA::Request insertion routines.

Class RWreqistream provides the capability to read all the standard data types and vectors of those data types from the CORBA::Request into an object.

An ORB stream must first be created by calling the appropriate creation routine. An ORB stream is initialized by passing a reference to the CORBA::Request in its constructor.

ORB streams are used in conjunction with the IONA Orbix opaque mechanism. In order for a C++ object to be passed as an opaque type, the developer must write insertion and extraction operations for that object from and to a CORBA::Request. The implementation of the insertion operator can make use of RWreqistream to read in the object's state from the CORBA::Request.

RWreqistream can be interrogated as to the status of the stream using member functions bad(), clear(), eof(), fail(), good(), and rdstate().

Return to Top of File.

RWreqostream


                           ... RWvostreamRWvios
   RWreqostream...
                            ... RWios

Synopsis

#include <rw/orb/orbstrea.h>

CORBA::Request &req = ...;
RWreqostream orbOStream(req);

Description

Class RWreqostream is an output stream used to write an object's state to a CORBA::Request object. Class RWreqostream encapsulates the CORBA::Request extraction routines.

Class RWreqostream provides the capability to write all the standard data types and vectors of those data types from an object into a CORBA::Request.

An ORB stream must first be created by calling the appropriate creation routine. An ORB stream is initialized by passing a reference to the CORBA::Request in its constructor.

ORB streams are used in conjunction with the IONA Orbix opaque mechanism. In order for a C++ object to be passed as an opaque type, the developer must write insertion and extraction operations for that object from and to a CORBA::Request. The implementation of the extraction operator can make use of RWreqostream to write the object's state to the CORBA::Request.

RWreqostream can be interrogated as to the status of the stream using member functions bad(), clear(), eof(), fail(), good(), and rdstate().

Return to Top of File.